package edu.yourl.admin.presenter;

import java.util.List;

import edu.yourl.domain.Gossip;
import edu.yourl.domain.User;
import edu.yourl.persistence.IAdminRepository;

public class AdminUserPresenter implements IAdminUserPresenter {

	private IAdminRepository repository;

	@Override
	public List<User> getUsers() {
		return this.repository.getAll(User.class);
	}
	
	@Override
	public List<Gossip> getGossips() {
		return this.repository.getAll(Gossip.class);
	}
	
	public void setRepository(IAdminRepository repository) {
		this.repository = repository;
	}
		
}
